<?php

/*
class Foo
{
    public $a;
    public $b;

    public function __construct()
    {
        $this->a = 10;
        $this->b = 20;
    }
}
*/

$obj = null;

for ($i = 0; $i <= 1000000; $i++) {
    $obj = array('a' => $i);
    //$obj = new Foo();
}

printf("a=%d\n", $obj['a']);
//printf("a=%d, b=%d\n", $obj->a, $obj->b);
